package com.group.sliding.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

@ApiModel(description = "订单商品条目")
@Data
@Accessors(chain = true)
public class OrderItemDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("商品id")
    private Long itemId;
    @ApiModelProperty("商品购买数量")
    private Integer num;
    // 商品名和价格的属性，主要在返回给前端数据时要用，前端传过来时该属性不必要
    @ApiModelProperty("商品名")
    private String name;
    @ApiModelProperty("商品价格")
    private Integer price;
}
